package com.zm.Study11_BufferedCopyTest;

import com.zm.Study09_BufferedRedaer.BufferedReaderDemo01;

import java.io.*;

public class CopyTest {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("D:\\project\\IDEAPROJECT\\JavaIO\\src\\main\\resources\\static\\BufferedReader_Writer\\被复制文件.txt"));
        BufferedWriter bw=new BufferedWriter(new FileWriter("D:\\project\\IDEAPROJECT\\JavaIO\\src\\main\\resources\\static\\BufferedReader_Writer\\复制文件.txt"));
        String line;
        while ((line=br.readLine())!=null){
            bw.write(line);
            bw.newLine();
        }
        bw.close();
    }
}
